package cn.itcast.springbook.config;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

import java.util.Map;

/**
 * @author 21195
 * @version v1.0
 * @package cn.itcast.springbook.config
 * @description:
 * @date 2019/6/11 19:03
 **/
@Component
@ConfigurationProperties("person")
public class PersonProperties {

    private String name;
    private Integer age;
    private Boolean marry;
    private Map sanwei;

    /**
     * get， set方法
     */
    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }

    public Boolean getMarry() {
        return marry;
    }

    public void setMarry(Boolean marry) {
        this.marry = marry;
    }

    public Map getSanwei() {
        return sanwei;
    }

    public void setSanwei(Map sanwei) {
        this.sanwei = sanwei;
    }
}
